package com.thinkgem.jeesite.modules.ht.api;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by JohnShen on 2016/12/5.
 * execl表格导入数据
 */
@Controller
@RequestMapping(value = "${adminPath}/add/excelImport")
public class ExeclImport {

    public static final int ADD_CLIENT = 111;
    public static final int ADD_HOUSE = 222;
    public static final int ADD_RENT = 333;


    @RequestMapping(value = "show")
    public ModelAndView show (@RequestParam String type){
        ModelAndView mav = new ModelAndView();
        Map<String , Object> attach = new HashMap<String, Object>();
        attach.put("type",type);
        attach.put("path",type);
        mav.addObject(attach);
        mav.setViewName("modules/ht/addListForm");
        return mav;
    }

}
